<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/admin/lib/html5shiv.js"></script>
    <script type="text/javascript" src="/admin/lib/respond.min.js"></script>

    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/admin/static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="/admin/lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/style.css"/>
    <!--[if IE 6]>
    <script type="text/javascript" src="/admin/lib/DD_belatedPNG_0.0.8a-min.js"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>添加产品分类</title>
</head>
<body>
<div class="page-container">
    <form action="/softWareClassifyAction/admin/changeClass" method="post" class="form form-horizontal"
          id="changeClass" enctype="multipart/form-data">
        <input hidden name="id" value="${menu.id}" id="id">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">
                <span class="c-red">*</span>
                分类名称：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" value="${menu.name}" placeholder="" id="name"
                       name="name">
            </div>
        </div>
        <c:set var="fid" value="${menu.fid}"></c:set>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span
                    class="c-red">*</span>所属分类：</label>
            <div class="formControls col-xs-6 col-sm-6">
					<span class="select-box"> <select name="fid" required
                                                      class="select" id="fidType">
                                <option value="${menu.type}">一级菜单</option>
                         <c:forEach var="data" items="${dataMap}">
                             <option value="${data[0]}" <c:if test="${fid==data[0]}">selected="selected"
                             </c:if>>${data[1]}</option>
                         </c:forEach>

					</select>
					</span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">图标：</label>
            <div class="formControls col-xs-8 col-sm-9">
					<span class="btn-upload form-group">
                        <input class="input-text upload-url radius look-text" readonly>
                        <a href="#" class="btn btn-primary radius look-file"> 修改图标</a>
						<input type="file" multiple name="file" class="input-file" id="uploadfile" required
                               accept=".jpg,.png,.jpeg,.gif" onchange="changeIcon(this)">
					</span>
            </div>
        </div>
        <div class="row cl image">
            <img id="image" src="/softWareClassifyAction/admin/classIcon?id=${menu.id}" alt="缩略图"
                 style="width: 100px;height: 100px;margin-left: 400px;">

        </div>

        <div class="row cl">
            <div class="col-9 col-offset-2">
                <input class="btn btn-primary radius" type="button" value="&nbsp;&nbsp;确认修改&nbsp;&nbsp;"
                       onclick="changeClass(this)">
            </div>
        </div>
    </form>
</div>
<span hidden id="bool">${bool}</span>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="/admin/sources/js/changeClass.js"></script>
<script type="text/javascript">


</script>

</body>
</html>